package edu.cs.usask.ca.silver.plugin.rcp.components;

import edu.cs.usask.ca.silver.businesslogic.ids.BaseId;

/**
 * January 11, 2009
 * 
 * This will be the class used t o represent objects in the project explorer
 * window within the rcp application. These objects are a string representation
 * of silver component objects. This representation is based on limited
 * information. These are the objects that will be passed into ProjectViewer
 * contents and label providers.
 * 
 * MAY NOT NEED THE SETTERS HERE WILL CHECK HOW WAS DONE IN PROOF OF CONCEPT.
 * 
 * @author Yudi Xue, Mike Taylor, Daniel Funk
 */

public class SilverTreeObject {

	private String silverComponentId;
	private String silverComponentName;
	private String silverComponentType;
	private final BaseId silverObjectId;

	/**
	 * 
	 * Class constructor
	 * 
	 * @param Id
	 *            identifier for the silver component that this SilverTreeObject
	 *            represents.
	 * 
	 * @param name
	 *            name of the silver component that this SilverTreeObject
	 *            represents.
	 * 
	 * @param type
	 *            type of the silver component that this SilverTreeObject
	 *            represents.
	 */

	public SilverTreeObject() {
		silverObjectId = null;
	}

	/*
	 * this is the constructor for the all other items in the gui treeviewer
	 * dispaly
	 */
	public SilverTreeObject(BaseId objectId) {
		silverObjectId = objectId;
	}

	/**
	 * @return the silver object id
	 */
	public BaseId getSilverObjectId() {
		// return silverComponentId;
		return silverObjectId;
	}

	/**
	 * @param silverComponentId
	 *            the silverComponentId to set
	 */
	public void setSilverComponentId(String silverComponentId) {
		this.silverComponentId = silverComponentId;
	}

	/**
	 * @return the silverComponentName
	 */
	public String getSilverComponentName() {
		return silverComponentName;
	}

	/**
	 * @param silverComponentName
	 *            the silverComponentName to set
	 */
	public void setSilverComponentName(String silverComponentName) {
		this.silverComponentName = silverComponentName;
	}

	/**
	 * @return the silverComponentID
	 */
	public String getSilverComponentId() {
		return silverComponentId;
	}

	/**
	 * @return the silverComponentType
	 */
	public String getSilverComponentType() {
		return silverComponentType;
	}

	/**
	 * @param silverComponentType
	 *            the silverComponentType to set
	 */
	public void setSilverComponentType(String silverComponentType) {
		this.silverComponentType = silverComponentType;
	}

}
